EIP-0045: Native STARK Proof Verification Opcode#103
Open
a-shannon wants to merge 3 commits into
Open
Conversation
Adds a native verifyStark opcode to the Ergo protocol, enabling post-quantum verifiable computation via hardcoded zkVM registries (RISC Zero, SP1, Valida). Key features: - BabyBear Ext16 field with >=128-bit PQ security (no grinding) - Registry-based zkVM AIR architecture (not generic AIR) - AOT-safe JIT cost model with fail-fast and negative value guards - Batched Merkle openings + Radix-8 FRI folding - Proposes maxTransactionSize increase from 96 KB to 256 KB - Soft-fork activation via miner voting
Author
|
Reference implementation PR: ergoplatform/sigmastate-interpreter#1116 Current test coverage: 159 tests across 3 suites:
|
added 2 commits
April 30, 2026 11:25
Companion document for EIP-0045 providing: - JIT complexity barrier motivation (Section 1) - BabyBear Ext16 tower + Poseidon1/Blake2b-256 instantiation (Section 2) - DEEP-FRI protocol mechanics with Montgomery batch inversion (Section 3) - 4 formal adversary games with BCS QROM reduction (Section 4) - AOT DoS shield guarantee (Section 5) Key result: Q=35, B=2048 satisfies lambda_PQ >= 128 with 1 bit of margin under the BCS quadratic extraction penalty (2^256 * 2^-385 = 2^-129).
arkadianet
added a commit
to arkadianet/Aegis-USE
that referenced
this pull request
Jul 17, 2026
The Aegis bridge is the trustless verifyStark settlement design (dev-docs/sidechain/stark-settlement-design.md): an on-chain STARK proof that the posted SideChainState transition is the honest Aegis chain's, replacing committee trust entirely. With that decision made, keeping the attester federation machinery on main misrepresents the trust model of the public-facing bridge — so the committee path (S1a-S1d, red-reviewed SOUND) is retired, not evolved. It stays fully recoverable at git tag attester-bridge-final. Removed: the aegis-attest crate (k-of-n signing substrate), the S1b node attestation service (aegis-node attest.rs, --attester-key, the /aegis/v1/attest/tip route), the rotatable AttestRegistry.es contract (S1d) and its compile/validate/injection surface + tests. Kept: the peg-in deposit->mint consensus substrate (bridge-agnostic, still inert), the wallet keystore, and SideChainState.es itself — its transition-constrained shape (digest-swap defense, height/rate/endowment guards) is exactly where the verifyStark predicate plugs in, so its authority is reduced to a clearly-marked, deliberately unsatisfiable placeholder slot (sigmaProp(false); placeholder tree 284 -> 210 B, pin updated). Docs carry short retirement notes instead of scrubbed history; mainnet activation of the trustless bridge awaits upstream EIP-0045 (ergoplatform/eips#103, sigmastate-interpreter#1116).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This EIP proposes a native
verifyStarkopcode for Ergo, enabling post-quantum STARK proof verification as a first-class L1 primitive.The opcode verifies proofs for registered verifier profiles rather than arbitrary AIR. Each
vmTypemaps to an immutable consensus profile fixing the field, extension tower, Merkle hash, Fiat-Shamir hash, FRI parameters, proof format, public-input format, and cost table version.What
verifyStark(proofChunks, publicInputs, imageId, vmType, costParams)vmTyperegistry for audited STARK/zkVM profiles, not generic user-supplied AIRvmType,imageId,publicInputs, and cost parameters are domain-separated before challenge generationNetwork Parameter Proposal
This EIP proposes increasing
maxTransactionSizefrom 96 KB to 256 KB.With Poseidon1 Merkle commitments using 52-byte digests:
Security Model
Companion Material
Feedback is especially welcome on the verifier profile registry, transcript domain separation, AOT cost model, and activation path.